package com.ruoyi.vehicles.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 行驶信息对象 a_driving_info
 *
 * @author ruoyi
 * @date 2025-04-02
 */
public class ADrivingInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 驾驶记录ID */
    private Long id;

    /** 车辆ID */
    @Excel(name = "车辆ID")
    private Long vehicleId;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String vehiclePlate;

    /** 行程日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "行程日期", width = 30, dateFormat = "yyyy-MM-dd")
    private String tripDate;

    /** 起始地点 */
    @Excel(name = "起始地点")
    private String startLocation;

    /** 终止地点 */
    @Excel(name = "终止地点")
    private String endLocation;

    /** 行驶距离 */
    @Excel(name = "行驶距离")
    private BigDecimal distance;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setVehicleId(Long vehicleId)
    {
        this.vehicleId = vehicleId;
    }

    public Long getVehicleId()
    {
        return vehicleId;
    }

    public void setVehiclePlate(String vehiclePlate)
    {
        this.vehiclePlate = vehiclePlate;
    }

    public String getVehiclePlate()
    {
        return vehiclePlate;
    }

    public void setTripDate(String tripDate)
    {
        this.tripDate = tripDate;
    }

    public String getTripDate()
    {
        return tripDate;
    }

    public void setStartLocation(String startLocation)
    {
        this.startLocation = startLocation;
    }

    public String getStartLocation()
    {
        return startLocation;
    }

    public void setEndLocation(String endLocation)
    {
        this.endLocation = endLocation;
    }

    public String getEndLocation()
    {
        return endLocation;
    }

    public void setDistance(BigDecimal distance)
    {
        this.distance = distance;
    }

    public BigDecimal getDistance()
    {
        return distance;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("vehicleId", getVehicleId())
            .append("vehiclePlate", getVehiclePlate())
            .append("tripDate", getTripDate())
            .append("startLocation", getStartLocation())
            .append("endLocation", getEndLocation())
            .append("distance", getDistance())
            .toString();
    }
}
